<?php

namespace app\common\validate\hrm;

use think\Validate;

/**
 * 功能介绍:
 * @author lvyubing
 * @date 2022/6/5
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class Report extends Validate
{
    protected $rule = [
        'user_id' => 'require',
        'report_type' => 'require',
        'start_time' => 'require',
        'contents' => 'require'
    ];
    protected $message = [
        'user_id.require' => '请先登录网站',
        'report_type' => '请选择日报类型',
        'start_time.require' => '请选择日报日期',
        'contents.require' => '请输入日报内容'
    ];
}